<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Route</title>
</head>

<body>
    <div data-ng-app="myApp" data-ng-controller="myCtrl">
        <h3>路由应用</h3>
        <!-- 版本1.6之前，可以写成这样
            <ul>
                <li><a href="#/">首页</a></li>
                <li><a href="#/computers">电脑</a></li>
                <li><a href="#/printers">打印机</a></li>
                <li><a href="#/blabla">其他</a></li>
            </ul>
            不需要感叹号
         -->
        <ul>
            <li><a href="#!/">首页</a></li>
            <li><a href="#!/computers">电脑</a></li>
            <li><a href="#!/printers">打印机</a></li>
            <li><a href="#!/blabla">其他</a></li>
        </ul>
        <div data-ng-view></div>
    </div>
    <script src="../node_modules/angular/angular.min.js"></script>
    <script src="../node_modules/angular/angular-route.min.js"></script>
    <script src="route.js"></script>
</body>

</html>
